package com.bst.bsj.common.dal.daointerface;

import java.util.List;
import java.util.Map;

import com.bst.bsj.common.dal.dataobject.Merchant;
import com.sylinxsoft.tools.dao.CommonBaseDAO;

public interface MerchantDAO extends CommonBaseDAO {
 /*
  * 手机登录
  */
  public Merchant selectByMobile(String mobile) ;
  
 /*
  * 分页查询
  */
  public List<Merchant> selectAll(Map paramMap);
  
  /*
   *总条数，条件查询
   */
  public Long getCounts(Map paramMap) ;
  
  
  public Long save(Merchant merchant) ;
  
  public int delete(Long id) ;
  
  public Merchant query(Long id) ;
  
  public int update(Merchant merchant) ;

  /*
   * 通过role,获取用户
   */
  public List<Merchant> getMerchantByRoleId(Long roleId);
  

  
}
